package com.xing.util.bean;

import java.util.concurrent.Callable;

public class Work2MainTask<V> implements Runnable{

    protected Callable<V> mVCallable;
    protected ResultTask<V> mVTask;

    public Work2MainTask(Callable<V> callable, ResultTask<V> task) {
        this.mVCallable = callable;
        this.mVTask = task;
    }

    @Override
    public void run() {
        try {
            V v = mVCallable.call();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
